subdir('icons')
subdir('metainfo')
+
+install_data(base_id + '.gschema.xml', install_dir: schemadir)
--- /dev/null
+<?<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+ <schema path="/org/gnome/Extensions/" id="org.gnome.Extensions">
+ <key name="window-width" type="i">
+ <default>800</default>
+ <summary>Window width</summary>
+ </key>
+ <key name="window-height" type="i">
+ <default>500</default>
+ <summary>Window height</summary>
+ </key>
+ <key name="window-maximized" type="b">
+ <default>false</default>
+ <summary>Window maximized</summary>
+ </key>
+ </schema>
+ </schemalist>
<property name="filter">searchFilter</property>
</object>
<template class="ExtensionsWindow" parent="AdwApplicationWindow">
- <property name="default-width">800</property>
- <property name="default-height">500</property>
<property name="title" translatable="yes">Extensions</property>
<child>
<object class="AdwToolbarView">
},
}]);
+ const settings = new Gio.Settings({
+ schema_id: 'org.gnome.Extensions',
+ });
+
+ settings.bind('window-width',
+ this, 'default-width',
+ Gio.SettingsBindFlags.DEFAULT);
+ settings.bind('window-height',
+ this, 'default-height',
+ Gio.SettingsBindFlags.DEFAULT);
+ settings.bind('window-maximized',
+ this, 'maximized',
+ Gio.SettingsBindFlags.DEFAULT);
+
this._searchEntry.connect('search-changed',
() => (this._searchFilter.search = this._searchEntry.text));
this._searchBar.connect('notify::search-mode-enabled',
icondir = join_paths(datadir, 'icons')
localedir = join_paths(datadir, 'locale')
metainfodir = join_paths(datadir, 'metainfo')
+schemadir = join_paths(datadir, 'glib-2.0', 'schemas')
servicedir = join_paths(datadir, 'dbus-1', 'services')
gjs = find_program('gjs')
subdir('po')
gnome.post_install(
+ glib_compile_schemas: true,
gtk_update_icon_cache: true
)